import java.util.List;

public class Main {
    public static void main(String[] args) {
        String s = "lingmindraboofooowingdingbarrwingmonkeypoundcake";
        String[] words = {"fooo","barr","wing","ding","wing"};
        Solution solution = new Solution();
        List<Integer> list = solution.findSubstring2(s, words);
        System.out.println();
    }
}